/*
 * Copyright (c) 2020 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef IOT_CONFIG_H
#define IOT_CONFIG_H

// /<CONFIG THE LOG
/* if you need the iot log for the development , please enable it, else please comment it */
#define CONFIG_LINKLOG_ENABLE 1

// /<CONFIG THE WIFI
/* Please modify the ssid and pwd for the own */
#define CONFIG_AP_SSID  "MERCURY_lijing24876@" // WIFI SSID
#define CONFIG_AP_PWD  "lijing24876@" // WIFI PWD

// #define CONFIG_AP_SSID  "r1" // WIFI SSID
// #define CONFIG_AP_PWD  "88888889" // WIFI PWD

#if 1
// this is the configuration head
 #define CN_IOT_SERVER    "mqtt://cloud-test.openvalley.net:10040"//"mqtt://cloud-test.openvalley.net"
//#define CN_IOT_SERVER     "mqtt://120.55.170.12"

// /<Configure the iot platform
/* Please modify the device id and pwd for your own */
// 设备ID名称，请参考华为物联网云文档获取该设备的ID。例如:60790e01ba4b2702c053ff03_helloMQTT
#define CONFIG_DEVICE_ID  "l3Go11oB1"
// 设备密码，请参考华为物联网云文档设置该设备密码。例如：hispark2021
#define CONFIG_DEVICE_PWD "61565733A33B443F096602F9D4B4399B"
#define CONFIG_CLIENTID "u3sN1rNBr_l3Go11oB1"

#define PRODUCT_KEY "u3sN1rNBr"
#define DEVICE_SECRET "3a18c5f075b1c4ed"

#define CONFIG_CMD_TOPIC_SUBSCRIBE "tlink/"PRODUCT_KEY"/"CONFIG_DEVICE_ID"/command/#"
#else // 产品环境
#define CN_IOT_SERVER    "mqtt://cloud.openvalley.net:10040"
#define CONFIG_DEVICE_ID  "RSUV1"
#define CONFIG_DEVICE_PWD "E020130485E64F82EF3097F0E894983C"
#define PRODUCT_KEY "R3QGdLGeL"
#define DEVICE_SECRET "384684223d43d3df"
#define CONFIG_CLIENTID "1ff0170bf6504e69a9e8d51a8d55457a"
#define CONFIG_CMD_TOPIC_SUBSCRIBE "tlink/"PRODUCT_KEY"/"CONFIG_DEVICE_ID"/command"

#endif

#endif // IOT_CONFIG_H